package com.da.javatest.leetCode;

import java.util.Arrays;
import java.util.stream.Collectors;

/**
 * @author chenlida
 * @date 2018/12/20 14:09
 * @description
 */
public class Code557 {
    public String reverseWords(String s) {
        return Arrays.stream(s.split(" ")).map(x -> {
            return new StringBuilder(x).reverse();
        }).collect(Collectors.joining(" "));
    }
}
